package boot.spring.controller;

import boot.spring.service.ClockService;
import boot.spring.util.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/ClockinmanagementController")
@RestController
public class ClockinmanagementController {
    /*注入打卡表的业务层*/
    @Autowired
    private ClockService clockService;

    /*分页多条件查询数据
     * 用户名查询
     * 签到状态查询
     * 签退状态查询
     * 打卡记录创建日期
     * */
    @GetMapping("/ClockConAll")
    public Result ClockConAll(Integer page,Integer limit,String uname,String beginstate,String endstate,String clocktime){
        return clockService.ClockSerAll( page, limit, uname, beginstate, endstate,clocktime);
    }

}
